from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from exit import db
from mall import create_app
from apps.api import models
from apps.common import models
from apps.mall import models
from apps.cms import models


app = create_app()
manager = Manager(app)

Migrate(app, db)
manager.add_command('db', MigrateCommand)


if __name__ == '__main__':
    manager.run()
